type templateItemBackgroundContSchema = {
  pos: number
  color: string
}


type templateItemBackgroundSchema = {
  type: string
  content: string | templateItemBackgroundContSchema[]
}

type templateItemContainerSchema = {
  width: number
  ratio: number
}

type templateItemSchema = {
  id: string
  name: string
  background: templateItemBackgroundSchema
  container: templateItemContainerSchema
}

export const templateList: templateItemSchema[] = [
  {
    id: 'base',
    name: '红色模板',
    background: {
      type: 'color',
      content: '#5479c6'
    },
    container: {
      width: 960,
      ratio: 0.5625,
    }
  },
  {
    id: 'blue',
    name: '蓝色模板',
    background: {
      type: 'image',
      content: 'https://front.rollong.cn/rgpt/upload/images/2024/12/30/784637aadf174e12b31b36ac980d3377.jpg'
    },
    container: {
      width: 960,
      ratio: 0.5625
    }
  },
  {
    id: 'blueTwo',
    name: '蓝色模板-2',
    background: {
      type: 'image',
      content: 'https://front.rollong.cn/rgpt/upload/images/2025/01/02/0761557ff2a24ee9aff26d495ba9a5d0.jpg'
    },
    container: {
      width: 1280,
      ratio: 0.5625
    }
  },
  {
    id: 'skyblue',
    name: '天蓝色模板',
    background: {
      type: 'linear',
      content: [
        {
          pos: 43,
          color: '#FFFFFF'
        },
        {
          pos: 100,
          color: '#DFEDF7'
        }
      ]
    },
    container: {
      width: 1280,
      ratio: 0.5625
    }
  },
  {
    id: 'ai',
    name: 'AI',
    background: {
      type: 'image',
      content: 'https://front.rollong.cn/rgpt/upload/images/2024/12/31/434f992f08e047ebac045ff0a6862c48.png'
    },
    container: {
      width: 1280,
      ratio: 0.5625
    }
  },
  {
    id: 'diamond',
    name: '钻石风模板',
    background: {
      type: 'image',
      content: 'https://front.rollong.cn/rgpt/upload/images/2025/01/02/8ae507012b24441baba122c916613b99.png'
    },
    container: {
      width: 1280,
      ratio: 0.5625
    }
  },
  {
    id: 'darkBrown',
    name: '红加棕蓝色模板',
    background: {
      type: 'image',
      content: 'https://front.rollong.cn/rgpt/upload/images/2025/01/02/5c3261517af24f3082c8e60e18e075be.png'
    },
    container: {
      width: 1280,
      ratio: 0.5625
    }
  },
]